<template>
  <div class="turnPage">
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
      :page-sizes="[20, 40, 60, 80]" :page-size="20" layout="total, sizes, prev, pager, next, jumper" :total="1000">
    </el-pagination>
  </div>
</template>



<script>
  export default {
    data() {
      return {
        currentPage: 1
      }
    },
    methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
</style>